home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
1138
/
source.zip
/
FRMFOLD.FRM
< prev
next >
Wrap
Text File
|
1995-02-14
|
3KB
|
103 lines
VERSION 2.00
Begin Form frmfold
BackColor = &H00C0C0C0&
Caption = "Copy message to which folder?"
ClientHeight = 2628
ClientLeft = 2448
ClientTop = 3624
ClientWidth = 4452
ClipControls = 0 'False
Height = 3048
Left = 2400
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2628
ScaleWidth = 4452
Top = 3252
Width = 4548
Begin ComboBox cmbfolder
BackColor = &H00FFFFFF&
Height = 288
Left = 360
Sorted = -1 'True
Style = 2 'Dropdown List
TabIndex = 0
Top = 360
Width = 2412
End
Begin CommandButton cmdcancel
Cancel = -1 'True
Caption = "C&ancel"
Height = 372
Left = 3360
TabIndex = 2
Top = 840
Width = 972
End
Begin CommandButton cmdOK
Caption = "&OK"
Default = -1 'True
Enabled = 0 'False
Height = 372
Left = 3360
TabIndex = 1
Top = 360
Width = 972
End
End
Option Explicit
Sub cmbfolder_Click ()
cmdOK.Enabled = True
End Sub
Sub cmdcancel_Click ()
frmfold.Hide
End Sub
Sub cmdok_Click ()
Dim groupname As String
Dim result As Integer
Dim foldernum As Integer
Dim foldername As String
Dim folderfile As String
screen.MousePointer = HourGlass
If cmbfolder.ListIndex <> -1 Then
groupname = cmbfolder.List(cmbfolder.ListIndex)
For foldernum = 1 To NUMFOLDERS
foldername = GetINI("Folders", "Name" + Format$(foldernum), "")
If foldername = groupname Then
folderfile = app.Path + "\FOLDER" + Format$(foldernum) + ".FOL"
End If
Next foldernum
If folderfile <> "" Then
result = SaveMsgToFolder(folderfile)
DllErr result
End If
' Reread folders
DoFolders
End If
screen.MousePointer = default
frmfold.Hide
End Sub
Sub Form_Load ()
Dim numgroups As Integer
Dim count As Integer
Dim groupname As String
cmbfolder.Clear
numgroups = GetNumAreas()
For count = 1 To numgroups
groupname = fixstr(GetAreaName(count))
If IsFolder(count) Then cmbfolder.AddItem groupname
Next count
End Sub